#ifndef RECTITEM_H
#define RECTITEM_H

#include <QObject>
#include <QGraphicsRectItem>

#include "utils.h"

class RectItem : public QObject, public QGraphicsRectItem
{
    Q_OBJECT
public:
    explicit RectItem(qreal x, qreal y, qreal width, qreal height, int64 time_p = -1, QGraphicsItem *parent = nullptr);
    int64 time_p;
    ~RectItem();

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
   // void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);

protected slots:
    //void modifyWidth();
};

#endif // RECTITEM_H
